/**
 * @author abcque
 * @version 1.0
 * @ className ArithmeticOperator
 * @ description 算术运算符示例
 * @ date 2022/10/21 8:25
 */
public class ArithmeticOperator {
    public static void main(String[] args) {
        /*int i = 123;
        System.out.println(i);

        // 在变量 i 的左边添加 + 运算符
        int x = +i;
        // 在变量 i 的左边添加 - 运算符
        int y = -i;

        System.out.println(x);
        System.out.println(y);*/

        /*int m = 10;
        int n = 3;
        System.out.println(m / n);

        double x = 10;
        int y = 3;
        System.out.println(x / y);

        int u = 10;
        double v = 3;
        // 思考：下面这行代码的执行结果是什么？
        // System.out.println(u / v);*/

        /*int i = 10;
        int j = 3;
        System.out.println(i % j);

        int x = -10;
        int y = 3;
        System.out.println(x % y);


        int m = 10;
        int n = -3;
        System.out.println(m % n);

        // 思考：取模的结果到底应该是正还是负？*/


        double i = 12.5;
        double j = 0.4;
        System.out.println(i % j);

    }
}
